package com.xiyan.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2020/11/25 22:02
 * Description:
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_blog_comment")
@ApiModel(value = "Comment对象", description = "")
public class Comment extends BaseEntity {

    @ApiModelProperty(value = "博客ID")
    private String blogId;
    @ApiModelProperty(value = "评论内容")
    private String content;
    @ApiModelProperty(value = "评论作者ID")
    private String userId;
    @ApiModelProperty(value = "父评论ID")
    private String parentId;
    @ApiModelProperty(value = "点赞量")
    private Long praiseNum;
    @ApiModelProperty(value = "子评论")
    @TableField(exist = false)
    private List<Comment> childComment;
}
